<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test04</title>
</head>
<body>
<script type="text/javascript">
    let {toString: str01} = 123;
    let {toString: str02} = true;

    let {to: str03} = undefined;
    let {to: str04} = null;

    console.log(str01 === Number.prototype.toString);
    console.log(str02 === Boolean.prototype.toString);

    console.log(str01.call(888, 2));
    console.log(str02.call(false));

    console.log(str03);
</script>
</body>
</html>